package com.tang.campus_market.service;

import com.tang.campus_market.entity.Comment;
import com.tang.campus_market.util.CommentData;
import com.tang.campus_market.util.CommentDiv;

import java.util.List;

public interface CommentService {
    Comment selectById(int id) ;
    List<Comment> queryPaginationByColumn(String columnRealName, Object value, int pageId, int pageSize) ;
    CommentData getHomeComments(Integer goodsId, int pageId, int size);
    CommentDiv getSubComments(Integer rootId, int pageId, int size);
    int insert(Comment comment) ;
    int deleteCommentByUser(Integer id) ;
    int banComment(Integer id);
}
